<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/paging.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 近期工作日志 | <font color=green><a href="__URL__/jobLog">【近期工作日志】</a></font><font color=green><a href="__URL__/add_jobLog">【添加今日工作日志】</a></font><a href="__ACTION__">【刷新】</a></font></h1>
     </div>
    <div class="module_public_main">
       <table id="data">
         <tr>
           <td align="center">快速查询</td>
            <td colspan="2" align="center">
            <form action="__URL__/jobLog/action/query_date" method="post">
              根据日期进行查询:
            <input type="text" name="query_date" class="_input" onClick="WdatePicker()"/><input type="submit" value="查询" class="_button" />
            </form>
            </td>
            <td colspan="4" align="center">
            <form action="__URL__/jobLog/action/query_name" method="post">
              根据姓名进行查询:
            <select name="query_name" class="_input">
               <option>--请选择要查询的姓名--</option>
               <?php if(is_array($users)): $i = 0; $__LIST__ = $users;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["u_id"]); ?>"><?php echo ($vo["u_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
            </select>
            <input type="submit" value="查询" class="_button" />
            </form></td>
         </tr>
         <tr>
           <td align="center">编号</td>
           <td align="center">姓名</td>
           <td align="center">日志日期</td>
           <td align="center">是否给予评价</td>
           <td align="center">操作</td>
         </tr>
         <?php if(is_array($j_info)): $k = 0; $__LIST__ = $j_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr class="tr_info">
           <td align="center"><?php echo ($k); ?></td>
           <td align="center"><?php echo ($v["j_uid"]); ?></td>
           <td align="center"><?php echo (date("Y-m-d",$v["j_date"])); ?></td>
           <?php if($v["j_boss_review"] == ''): ?><td align="center">
                <font color=red>未评价&nbsp;
                <?php if($r == '1'): ?><a href="__URL__/review_joblog/j_id/<?php echo ($v["j_id"]); ?>">&nbsp;&nbsp;[对日志进行评价]</a><?php endif; ?>
                </font></td>
           <?php else: ?>
           <td align="center">
                <font color=green>已评价&nbsp;
                <a href="__URL__/look_review/j_id/<?php echo ($v["j_id"]); ?>">&nbsp;&nbsp;[查看评价]</a>
                </font></td><?php endif; ?>        
           <td align="center">
              <a href="__URL__/look_jobLog/j_id/<?php echo ($v["j_id"]); ?>">查看工作日志</a> | 
              <a href="__URL__/edit_jobLog/j_id/<?php echo ($v["j_id"]); ?>">修改工作日志</a>
           </td>
         </tr><?php endforeach; endif; else: echo "" ;endif; ?>
         <?php if($fpage == ''): ?><tr>
           <td colspan="6" align="right" id="data2">
              <script type="text/javascript">
				query_page(10); //jquery分页处理
			  </script>
           </td>
         </tr>
         <?php else: ?>
         <tr>
           <td colspan="5" align="right"><?php echo ($fpage); ?></td>
         </tr><?php endif; ?>
       </table>
    </div>
  </div>
</body>
</html>